package com.cyzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.dao.UserRole;
import com.cyzy.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface CampusMapper extends BaseMapper<Campus>{


    //分页查询合同记录
    Page<Contract> selectContractByUserId(Page<Contract> page,
                                          @Param("userId") Long userId,
                                          @Param("contractAmount") Double contractAmount,
                                          @Param("paymentStatus") String paymentStatus,
                                          @Param("startDate") String startDate,
                                          @Param("endDate") String endDate,
                                          @Param("signTime") String signTime);


    //分页查询秒杀活动记录
    Page<SeckillJoin> getAllSecKill(Page<SeckillJoin> page, @Param("userId") Long userId);

    //通过校区ID查找该校区所有正常的课程
    List<Course> queryAllCourseByCampusId(Course course);

}
